Development Environment Configuration

Before you start secondary development, configure the development environment accordingly, and introduce the SDK to your project.

Header Files and Library Files

During the installation of the software client, the installer installs the header files and library files required by the SDK on the computer. The SDK path: /opt/(software name)/Samples/(architecture)/Python.
Header files are in the directory of $(MVCAM_COMMON_RUNENV)\Samples\Python\MvImport.
Header File Name Description
CameraParams_const.py Constant, class.
CameraParams_header.py Definitions of structures.
MvCameraControl_class.py API files.
MvErrorDefine_const.py Definitions of status code.
PixelType_header.py Definitions of pixel formats.
MvISPErrorDefine_const.py Definitions of ISP error code.
The SDK provides the library files in Python (libMvCameraControl.so), with the path of ${MVCAM_COMMON_RUNENV}/(architecture)/libMvCameraControl.so

Development Environment Requirements

Before developing your program with the machine vision camera SDK, you need to set up an environment for Python programming first.
Note
Python 3.X is recommended. To check your Python version using the command prompt, you can type 'python –version' to display the installed version information.

Include SDK Header Files

You can refer to the following sample code to include header files of SDK in your program.
#The header file path of SDK in Python
sys.path.append("../../MvImport")
from MvCameraControl_class import *



Previous: None Next: Before You Start